﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using BLL;
using Models;

namespace Workflow.Project
{
    public partial class SearchNode : System.Web.UI.Page
    {
        private PJSearchManager objPJSearch = new PJSearchManager();
        public List<PJNode> resultList = new List<PJNode>();
        protected void Page_Load(object sender, EventArgs e)
        {
            string pjId = Context.Request["PJId"].ToString();
            if (!IsPostBack)
            {
                try
                {
                    resultList = objPJSearch.GetNode(pjId);
                }
                catch (Exception ex)
                {
                    string msg = string.Format("<script>alert('{0}')</script>", ex.Message);
                    Page.ClientScript.RegisterStartupScript(Page.GetType(), "alert", msg);
                }
            }
        }
    }
}